import request from '@/utils/request'

// 列表查询
export function listConstructionType(query) {
  return request({
    url: '/system/SysConstructionType/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getConstructionType(dataId) {
  return request({
    url: '/system/SysConstructionType/' + dataId,
    method: 'get'
  })
}

// 新增
export function addConstructionType(data) {
  return request({
    url: '/system/SysConstructionType',
    method: 'post',
    data: data
  })
}

// 修改
export function updateConstructionType(data) {
  return request({
    url: '/system/SysConstructionType',
    method: 'put',
    data: data
  })
}

// 删除
export function delConstructionType(dataId) {
  return request({
    url: '/system/SysConstructionType/' + dataId,
    method: 'delete'
  })
}
